import type { OidcUserInfo } from '#/utils/daprplus';

import { oidcRequestClient } from '#/api/request';

/**
 * 从OIDC服务获取用户信息
 */
export async function getOidcUserInfoApi(): Promise<OidcUserInfo> {
  const info = await oidcRequestClient.get<OidcUserInfo>('/connect/userinfo', {
    responseReturn: 'data',
  });
  return info;
}
